<!--

    Copyright (c) 2005, 2018 Oracle and/or its affiliates. All rights reserved.
    Portions Copyright &#169; [2017-2020] Payara Foundation and/or affiliates.

    This program and the accompanying materials are made available under the
    terms of the Eclipse Public License v. 2.0, which is available at
    http://www.eclipse.org/legal/epl-2.0.

    This Source Code may also be made available under the following Secondary
    Licenses when the conditions for such availability set forth in the
    Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
    version 2 with the GNU Classpath Exception, which is available at
    https://www.gnu.org/software/classpath/license.html.

    SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0

-->

<p><a id="task-jmshostedit" name="task-jmshostedit"></a><a id="GHJMS00028" name="GHJMS00028"></a></p>

<h4><a id="sthref26" name="sthref26"></a>To Edit a JMS Host</h4>
<a name="BEGIN" id="BEGIN"></a>
<ol>
<li>
<p>In the navigation tree, expand the Configuration node.</p>
</li>
<li>
<p>Select the instance to configure:</p>
<ul>
<li>
<p>To configure a particular instance, select the instance's config node. For example, for the default instance, <code>server</code>, select the <code>server-config</code> node.</p>
</li>
<li>
<p>To configure the default settings for future instances that use a copy of <code>default-config</code>, select the <code>default-config</code> node.</p>
</li>
</ul>
</li>
<li>
<p>Under the Configuration node, expand the Java Message Service node.</p>
</li>
<li>
<p>Under the Java Message Service node, select the JMS Hosts node.</p>
<p>The JMS Hosts page opens.</p>
</li>
<li>
<p>On the JMS Hosts page, select the host that you are editing.</p>
<p>The Edit JMS Host page opens.</p>
</li>
<li>
<p>In the Host field, type the name or Internet Protocol (IP) address of the system where the JMS host will run (<code>localhost</code> or the name of the local or remote system).</p>
</li>
<li>
<p>In the Port field, type the port number of the JMS service.</p>
<p>Change this field only if the JMS service to be used is running on a non-default port. The default port is 7676.</p>
</li>
<li>
<p>In the Admin Username and Admin Password fields, type the Message Queue broker user name and password.</p>
<p>These are different from the Payara Server user name and password. Edit these fields only if the Message Queue broker values have been changed using the <i>as-install-parent</i><code>/mq/bin/imqusermgr</code> command. The default values are <code>admin</code> and <code>admin</code>.</p>
</li>
<li>
<p>Click Save.</p>

<hr>
<p><b>Tip:</b></p>
<p>To return to the default settings, click the Load Defaults button, then click Save.</p>

<hr>

</li>
</ol>
<a id="sthref27" name="sthref27"></a>
<h5>See Also</h5>
<ul>
<li>
<p><a href="task-jmsservice.html">To Configure the JMS Service</a></p>
</li>
<li>
<p><a href="task-jmshostnew.html">To Create a JMS Host</a></p>
</li>
<li>
<p><a href="task-jmshostdelete.html">To Delete a JMS Host</a></p>
</li>
<li>
<p><a href="task-jmsphysicaldestnew.html">To Create a JMS Physical Destination</a></p>
</li>
<li>
<p><a href="task-jmsphysicaldestedit.html">To Edit a JMS Physical Destination</a></p>
</li>
<li>
<p><a href="task-jmsphysicaldestdelete.html">To Delete a JMS Physical Destination</a></p>
</li>
<li>
<p><a href="task-jmsflushmessages.html">To Remove Messages from a JMS Physical Destination</a></p>
</li>
<li>
<p><a href="task-jmsphysicaldeststats.html">To View Statistics for a JMS Physical Destination</a></p>
</li>
</ul>


<small>Copyright &#169; 2005, 2017, Oracle and/or its affiliates. All rights reserved. <a href="docinfo.html">Legal Notices</a></small>
<small>Portions Copyright &#169; [2017-2020] Payara Foundation and/or affiliates.</small>
